package com.doeis.uwork.entity.mongo;

import com.alibaba.fastjson.JSON;
import com.mongodb.ReflectionDBObject;

public class MessageUser extends ReflectionDBObject {
	
	private String _id;
	private String user_id;
	private String name;
	
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String get_id() {
		return _id;
	}
	public void set_id(String _id) {
		this._id = _id;
	}
	@Override
	public String toString() {
		return "MessageUser [user_id=" + user_id + ", name=" + name + "]";
	}
	
	
	public static void main(String[] args) {
		String context= "{\"Name\":\"小极\",\"User_id\":\"402881ec48157e700148157e709a0001\"}";
		MessageUser messageUser = JSON.parseObject(context, MessageUser.class);
		System.err.println(messageUser.toString());
	}
	
}